package edu.sctu.alex.June.day20150605;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * Created by user03 on 2015/6/5.
 */
public class DayClient {

    public void useDate(){
        Date date = new Date();
        System.out.println(date.getTime());

    }
    public void useFormt(){
        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy MM dd HH mm ss ");
        System.out.println(simpleDateFormat.getCalendar());

    }

    public static void main(String[] args) {
        DayClient dayClient = new DayClient();
        dayClient.useDate();
        dayClient.useFormt();
    }
}
